﻿using System;
using System.ComponentModel;


namespace ProductInfo.Core.Models
{
	public class ReleaseNoteEntry
	{
		public int Id { get; set; }

		[DisplayName("Product Id")] 
		public int ProductId { get; set; }

		public string Version { get; set; }

		public string Detail { get; set; }

		public string Author { get; set; }

		[DisplayName("Edit Timestamp")] 
		public DateTimeOffset EditTimestamp { get; set; }


		public ReleaseNoteEntry()
		{
		}


		public ReleaseNoteEntry(
			int Id,
			int productId,
			string version,
			string detail,
			string author,
			DateTimeOffset editTimestamp)
		{
			this.Id = Id;
			this.ProductId = productId;
			this.Version = version;
			this.Detail = detail;
			this.Author = author;
			this.EditTimestamp = editTimestamp;
		}
	}
}